//
//  DESCrypts.h
//  Lrjh
//
//  Created by 李同学 on 2025/7/21.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface DESCrypts : NSObject

@property (class, nonatomic, strong) NSString *encode;
@property (class, nonatomic, strong, readonly) NSString *EncrKey;

+ (NSString *)Encrypt:(NSString *)pToEncrypt;
+ (NSString *)Decrypt:(NSString *)pToDecrypt;

+ (NSString *)Encrypt:(NSString *)message withKey:(NSString *)key;
+ (NSString *)Decrypt:(NSString *)message withKey:(NSString *)key;

+ (NSData *)convertHexString:(NSString *)hexString;
+ (NSString *)toHexString:(NSData *)data;

@end

NS_ASSUME_NONNULL_END

